﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="main.aspx.cs" Inherits="main" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>诚信评价管理系统</title>
    <script type="text/javascript">
        function addTab(tabPanel, id, url,title) {
            var tab = tabPanel.getComponent(id);
            if (!tab) {
                tab = tabPanel.add({ 
                    id: id, 
                    title: title, 
                    closable:true,                    
                    autoLoad: {
                        showMask: true,
                        url: url,
                        mode:'iframe',
                        maskMsg: '加载 ' + title + '...'
                    }                    
                });

                tab.on('activate', function() {
                    var item = MenuPanel1.menu.items.get(id + "_item");
                    if (item) {
                        MenuPanel1.setSelection(item);
                    }

                }, this);
            }
            tabPanel.setActiveTab(tab);
        }
    </script>
    <style type="text/css">
        .td1{width:180px; text-align:right;font-size:14px; padding:5px 5px 5px 5px;}
        .td2{text-align:left; font-size:14px; padding:5px 5px 5px 5px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server">
    </ext:ScriptManager>
    
    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
            <North>
                    <ext:Panel ID="TopPanel" runat="server" Icon="House">
                        <Body>
                            <table style="line-height:25px;">
                                <tr>
                                    <td style="font-size:12px;">
                                        <ext:Label Icon="UserBrown" ID="Label1" runat="server">
                                        </ext:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <ext:Label Icon="UserGray" ID="Label2" runat="server">
                                        </ext:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <ext:Label Icon="UserRed" ID="Label3" runat="server">
                                        </ext:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <ext:Label Icon="UserOrange" ID="Label4" runat="server">
                                        </ext:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <ext:Label Icon="UserStar" ID="Label5" runat="server">
                                        </ext:Label>
                                    </td>
                                </tr>
                            </table>
                        </Body>
                    </ext:Panel>
                </North> 
                <West Collapsible="true"  Split="true">
                    <ext:Panel ID="Panel4" runat="server" Collapsible="false" Title="功能菜单" Icon="ApplicationHome" Width="175">
                        <Body>
                            <ext:MenuPanel ID="MenuPanel1" runat="server"  AutoHeight="true" Title="用户管理" Icon="UserHome" Width="175" Collapsible="true" >
                                <Menu>
                                    <Items>
                                        
                                        <ext:MenuItem ID="MenuItem4" runat="server" Text="系统用户管理" Icon="UserAdd">
                                        <Listeners>
                                                        <Click Handler="addTab(#{TabPanel1}, 'MenuItem4', 'user/userlist.aspx','系统用户管理');" />
                                                        </Listeners>
                                        </ext:MenuItem>
                                         <ext:MenuItem ID="MenuItem25" runat="server" Text="客户数据导入" Icon="DatabaseYellowStart">
                                        <Listeners>
                                                        <Click Handler="addTab(#{TabPanel1}, 'MenuItem25', 'import/xls.aspx','客户数据导入');" />
                                                        </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem38" runat="server" Text="行业分值批量修改" Icon="DatabaseYellowStart">
                                        <Listeners>
                                                        <Click Handler="addTab(#{TabPanel1}, 'MenuItem38', 'user/scoremodify.aspx','行业分值批量修改');" />
                                                        </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem37" runat="server" Text="用户登录日志" Icon="DatabaseYellowStart">
                                                <Listeners>
                                                  <Click Handler="addTab(#{TabPanel1}, 'MenuItem37', 'user/userlogs.aspx','用户登录日志');" />
                                                </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem35" runat="server" Text="退出登录" Href="/logout.aspx" HrefTarget="_self" Icon="ApplicationOsxGo">
 
                                        </ext:MenuItem>
                                    </Items>
                                </Menu>
                            </ext:MenuPanel>
                            <ext:MenuPanel ID="MenuPanel2" runat="server" AutoHeight="true" Title="数据管理" Icon="Computer" Width="175"  Collapsible="false">
                                <Menu>
                                    <Items>
                                        <ext:MenuItem ID="MenuItem7" runat="server" Text="数据录入" Icon="DatabaseAdd" >
                                            <Menu>
                                                <ext:Menu ID="Menu2" runat="server">
                                                    <Items>
                                                        <ext:MenuItem ID="MenuItem8" runat="server" Text="员工诚信档案" Icon="UserRed" >
                                                           <Menu>
                                                            <ext:Menu ID="Menudetail2" runat="server">
                                                                <Items>
                                                                    <ext:MenuItem ID="HR_Staff_ReportAdd" runat="server"  Text="人事部操作">
                                                                        <Listeners>
                                                                          <Click Handler="addTab(#{TabPanel1}, 'HR_Staff_ReportAdd', 'HR/UserList.aspx','员工诚信档案（添加）');" />
                                                                        </Listeners>
                                                                    </ext:MenuItem>
                                                                    <ext:MenuItem ID="Safty_Staff_ReportAdd" runat="server"  Text="安监部操作">
                                                                        <Listeners>
                                                                          <Click Handler="addTab(#{TabPanel1}, 'Safty_Staff_ReportAdd', 'Safty/UserList.aspx','员工诚信档案');" />
                                                                        </Listeners>
                                                                    </ext:MenuItem>
                                                                </Items>
                                                            </ext:Menu>
                                                           </Menu>
                                                       
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem9" runat="server" Text="供应商诚信档案" Icon="UserGreen">
                                                           <Listeners>
                                                               <Click Handler="addTab(#{TabPanel1}, 'MenuItem9', 'Provider/reportadd.aspx','供应商诚信档案(添加)');" />
                                                           </Listeners>                                                           
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem13" runat="server" Text="用电客户诚信档案" Icon="UserGray">
                                                           <Listeners>
                                                               <Click Handler="addTab(#{TabPanel1}, 'MenuItem13', 'company/userlist.aspx','用电客户诚信档案(添加)');" />
                                                           </Listeners>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem23" runat="server" Text="客户评分" Icon="UserGray">
                                                           <Listeners>
                                                               <Click Handler="addTab(#{TabPanel1}, 'MenuItem23', 'scores/scoresadd.aspx','客户评分(添加)');" />
                                                           </Listeners>
                                                        </ext:MenuItem>
                                                    </Items>
                                                </ext:Menu>
                                            </Menu>
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem10" runat="server" Text="数据审核" Icon="KeyStart">
                                         <Menu>
                                                <ext:Menu ID="Menu3" runat="server">
                                                    <Items>
                                                        <ext:MenuItem ID="MenuItem14" runat="server" Text="员工诚信档案" Icon="UserRed" >
                                                         <Menu>
                                                                <ext:Menu runat="server" ID="MenuItem911">
                                                                    <Items>
                                                                        <ext:MenuItem ID="HR_Staff_ShenHe" Text="人事方面审核">
                                                                           <Listeners> 
                                                                            <Click Handler="addTab(#{TabPanel1}, 'HR_Staff_ShenHe', 'hr/UserListReply.aspx','员工诚信档案（审核）');" />
                                                                           </Listeners>
                                                                         </ext:MenuItem>
                                                                        <ext:MenuItem ID="Safty_Staff_ShenHe" Text="安监方面审核">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'Safty_Staff_ShenHe', 'Safty/UserListReply.aspx','员工诚信档案（审核）');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                    </Items>
                                                                </ext:Menu> 
                                                         </Menu>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem15" runat="server" Text="供应商诚信档案" Icon="UserGreen">
                                                            <Menu>
                                                                <ext:Menu runat="server" ID="MenuItem115">
                                                                    <Items>
                                                                        <ext:MenuItem runat="server" ID="Provider_shenhe_mine" Text="部门审核">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'Provider_shenhe_mine', 'Provider/view.aspx?type=dept','供应商诚信档案(部门审核)');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                        <ext:MenuItem runat="server" ID="MenuItem2" Text="生产技术部审核">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem2', 'Provider/view.aspx?type=tech','供应商诚信档案(生产技术部审核)');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                        <ext:MenuItem runat="server" ID="MenuItem3" Text="办公室审核">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem3', 'Provider/view.aspx?type=office','供应商诚信档案(办公室审核)');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                        <ext:MenuItem runat="server" ID="MenuItem5" Text="公司领导审核">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem5', 'Provider/view.aspx?type=boss','供应商诚信档案(公司领导审核)');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                    </Items>
                                                                </ext:Menu>
                                                            </Menu>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem16" runat="server" Text="用电客户诚信档案" Icon="UserGray">
                                                        <Menu>
                                                                <ext:Menu runat="server" ID="Menu7">
                                                                    <Items>
                                                                        <ext:MenuItem runat="server" ID="MenuItem32" Text="部门审核">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem32', 'company/userlistreply.aspx','用电客户诚信档案(部门领导审核)');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                        <ext:MenuItem runat="server" ID="MenuItem33" Text="相关部门审核">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem33', 'company/userlistreply.aspx?type=other','用电客户诚信档案(相关部门审核)');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                        <ext:MenuItem runat="server" ID="MenuItem34" Text="公司领导">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem34', 'company/userlistreply.aspx','用电客户诚信档案(公司领导审核)');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                        
                                                                    </Items>
                                                                </ext:Menu>
                                                            </Menu>
                                                        
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem24" runat="server" Text="客户评分（审核）" Icon="UserGray">
                                                           <Listeners>
                                                               <Click Handler="addTab(#{TabPanel1}, 'MenuItem24', 'scores/verify.aspx','客户评分(审核)');" />
                                                           </Listeners>
                                                        </ext:MenuItem>
                                                    </Items>
                                                </ext:Menu>
                                            </Menu>
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem11" runat="server" Text="数据查询" Icon="Find">
                                        <Menu>
                                                <ext:Menu ID="Menu4" runat="server">
                                                    <Items>
                                                        <ext:MenuItem ID="MenuItem17" runat="server" Text="员工诚信档案" Icon="UserRed" >
                                                         <Menu>
                                                                <ext:Menu runat="server" ID="Menu1">
                                                                    <Items>
                                                                        <ext:MenuItem ID="MenuItem6" Text="人事方面查询">
                                                                           <Listeners> 
                                                                            <Click Handler="addTab(#{TabPanel1}, 'MenuItem6', 'search/hr/default.aspx','人事方面查询');" />
                                                                           </Listeners>
                                                                         </ext:MenuItem>
                                                                        <ext:MenuItem ID="MenuItem12" Text="安监方面查询">
                                                                            <Listeners>
                                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem12', 'search/safty/default.aspx','安监方面查询');" />
                                                                            </Listeners>
                                                                        </ext:MenuItem>
                                                                    </Items>
                                                                </ext:Menu> 
                                                         </Menu>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem18" runat="server" Text="供应商诚信档案" Icon="UserGreen">
                                                            <Listeners>
                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem18', 'search/provider/default.aspx','供应商诚信档案查询');" />
                                                            </Listeners>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem19" runat="server" Text="用电客户诚信档案" Icon="UserGray">
                                                           <Listeners>
                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem19', 'search/company/default.aspx','用电客户诚信档案查询');" />
                                                            </Listeners>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem39" runat="server" Text="用电客户评分细节" Icon="UserGray">
                                                           <Listeners>
                                                              <Click Handler="addTab(#{TabPanel1}, 'MenuItem39', 'search/scores/default.aspx','用电客户评分细节查询');" />
                                                            </Listeners>
                                                        </ext:MenuItem>
                                                    </Items>
                                                </ext:Menu>
                                            </Menu>
                                        </ext:MenuItem> 
                                        <ext:MenuItem ID="mysearch" runat="server" Text="数据查询审核" Icon="DatabaseConnect">
                                            <Menu>
                                                <ext:Menu runat="server">
                                                    <Items>
                                                        <ext:MenuItem Text="员工诚信档案查询（人事）" ID="myseach1" runat="server">
                                                        <Listeners>
                                                          <Click Handler="addTab(#{TabPanel1}, 'myseach1', 'search/hr/apply.aspx','员工诚信档案查询（人事）');" />
                                                        </Listeners>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem20" Text="员工诚信档案查询（安监）" runat="server">
                                                        <Listeners>
                                                          <Click Handler="addTab(#{TabPanel1}, 'MenuItem20', 'search/safty/apply.aspx','员工诚信档案查询（人事）');" />
                                                        </Listeners>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem21" Text="用电客户诚信档案" runat="server">
                                                        <Listeners>
                                                          <Click Handler="addTab(#{TabPanel1}, 'MenuItem21', 'search/company/apply.aspx','用电客户诚信档案');" />
                                                        </Listeners>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem22" Text="供应商诚信档案" runat="server">
                                                        <Listeners>
                                                          <Click Handler="addTab(#{TabPanel1}, 'MenuItem22', 'search/provider/apply.aspx','供应商诚信档案');" />
                                                        </Listeners>
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem40" Text="用电客户评分细节" runat="server">
                                                        <Listeners>
                                                          <Click Handler="addTab(#{TabPanel1}, 'MenuItem40', 'search/scores/apply.aspx','用电客户评分细节');" />
                                                        </Listeners>
                                                        </ext:MenuItem>
                                                    </Items>
                                                </ext:Menu>
                                            </Menu>
                                        </ext:MenuItem>
                                        <ext:MenuItem Text="个人查询申请" Icon="HouseGo" runat="server">
                                            <Listeners>
                                                <Click Handler="addTab(#{TabPanel1}, 'menuitem1177aaa', 'search/myapply.aspx','个人查询申请');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem26" runat="server" Text="退回的数据" Icon="DatabaseAdd" >
                                            <Menu>
                                                <ext:Menu ID="Menu5" runat="server">
                                                    <Items>
                                                        <ext:MenuItem ID="MenuItem27" runat="server" Text="员工诚信档案" Icon="UserRed" >
                                                           <Menu>
                                                            <ext:Menu ID="Menu6" runat="server">
                                                                <Items>
                                                                    <ext:MenuItem ID="MenuItem28" runat="server"  Text="人事部">
                                                                        <Listeners>
                                                                          <Click Handler="addTab(#{TabPanel1}, 'MenuItem28', 'HR/modify.aspx','待办事项-人事部-员工诚信档案');" />
                                                                        </Listeners>
                                                                    </ext:MenuItem>
                                                                    <ext:MenuItem ID="MenuItem29" runat="server"  Text="安监部">
                                                                        <Listeners>
                                                                          <Click Handler="addTab(#{TabPanel1}, 'MenuItem29', 'Safty/modify.aspx','待办事项-安监部-员工诚信档案');" />
                                                                        </Listeners>
                                                                    </ext:MenuItem>
                                                                </Items>
                                                            </ext:Menu>
                                                           </Menu>
                                                       
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem30" runat="server" Text="供应商诚信档案" Icon="UserGreen">
                                                           <Listeners>
                                                               <Click Handler="addTab(#{TabPanel1}, 'MenuItem30', 'Provider/modify.aspx','供应商诚信档案(待办事项)');" />
                                                           </Listeners>                                                           
                                                        </ext:MenuItem>
                                                        <ext:MenuItem ID="MenuItem31" runat="server" Text="用电客户诚信档案" Icon="UserGray">
                                                           <Listeners>
                                                               <Click Handler="addTab(#{TabPanel1}, 'MenuItem13', 'company/modify.aspx','用电客户诚信档案(待办事项)');" />
                                                           </Listeners>
                                                        </ext:MenuItem> 
                                                    </Items>
                                                </ext:Menu>
                                            </Menu>
                                        </ext:MenuItem> 
                                        <ext:MenuItem ID="MenuItem36" runat="server" Text="修改登录密码"   Icon="Vector">
                                               <Listeners>
                                                   <Click Handler="addTab(#{TabPanel1}, 'MenuItem36', 'user/passwd.aspx','修改登录密码');" />
                                               </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem1" runat="server" Text="退出登录" Href="/logout.aspx" HrefTarget="_self" Icon="ApplicationOsxGo">
 
                                        </ext:MenuItem>
                                        <ext:MenuItem ID="MenuItem41" runat="server" Text="更新数据" Href="/main.aspx" HrefTarget="_self"  Icon="Reload">
                                         
 
                                        </ext:MenuItem>
                                    </Items>
                                </Menu>                                
                            </ext:MenuPanel>
                        </Body>
                    </ext:Panel>
                </West>
                
                <Center>
                    <ext:Panel ID="Panel7" runat="server" Title="主功能显示区">
                        <Body>
                            <ext:FitLayout ID="FitLayout2" runat="server">
                                <ext:TabPanel ID="TabPanel1" runat="server" Border="false" Title="Center">
                                <Tabs>
                                    <ext:Tab ID="basetab" Icon="House" Title="基本情况" Closable="false"  runat="server">
                                        <Body>
                                        
                                        </Body>
                                    </ext:Tab>
                                </Tabs>
                                <Plugins>
                                    <ext:TabCloseMenu  CloseOtherTabsText="关闭其他标签" CloseTabText="关闭标签">
                                        
                                    </ext:TabCloseMenu>
                                    
                                </Plugins>
                                </ext:TabPanel>
                            </ext:FitLayout>
                        </Body>
                    </ext:Panel>
                </Center>
            </ext:BorderLayout>
        </Body>
    </ext:ViewPort> 
    </form>
</body>
</html>
